package com.amumu.drama.common.modules.yipay.service;

import com.amumu.drama.common.modules.sumapay.dto.req.WeChatRefundReq;
import com.amumu.drama.common.modules.sumapay.dto.req.WeChatSingleOrderQueryReq;
import com.amumu.drama.common.modules.sumapay.dto.resp.WeChatPaySuccessResp;
import com.amumu.drama.common.modules.sumapay.dto.resp.WeChatRefundResp;
import com.amumu.drama.common.modules.yipay.dto.req.YipaySubmitReq;
import com.amumu.drama.common.modules.yipay.dto.resp.YipayOrderResp;

/**
 * @author sunzhuang
 * @date 2024/6/19 10:25
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */
public interface YipayService {

    /** 创建订单 */
    YipayOrderResp createOrder(YipaySubmitReq request);


    /** 单笔订单查询 */
    WeChatPaySuccessResp singleQuery(WeChatSingleOrderQueryReq request);

    /** 退款 */
    WeChatRefundResp refund(WeChatRefundReq request);
}
